import 'package:flutter/material.dart';
import 'services/app_service.dart';

void main() async {
  WidgetsFlutterBinding.ensureInitialized();

  final appService = AppService();

  // جەدۋەل قۇرۇش
  await appService.createUserInfoTable();

  // سىناق ئىشلەتكۈچى قوشۇش
  final result = await appService.addUser('admin', 'admin123');
  debugPrint('سىناق ئىشلەتكۈچى قوشۇلدى: $result');

  runApp(
    const MaterialApp(
      home: Scaffold(
        body: Center(
          child: Text('سىناق ئىشلەتكۈچى قوشۇلدى'),
        ),
      ),
    ),
  );
}
